package org.kugua.library;

/**
 * QuestionAnswerLibrary
 *
 * @author 苦瓜
 * @create 2024-08-27
 * @since 1.0.0
 */
public interface QuestionAnswerLibrary extends Library<QuestionAnswer> {
    /**
     * 随机获取1个QA
     *
     * @return QuestionAnswer
     */
    QuestionAnswer randomOne();

    /**
     * 随机获取1个指定answer的QA
     *
     * @param answer 答案
     * @return QuestionAnswer
     */
    QuestionAnswer randomOne(String answer);
}
